.editor-featured-image {
	width: 100%;
	padding: 0 0 7px;
	text-align: center;
}

.editor-featured-image.has-active-drop-zone {
	display: block;
	position: relative;
	min-height: 115px;
	padding: 15px 0 20px;
}

.editor-featured-image__dropzone {
	margin-top: 0;
	margin-bottom: 0;

	.drop-zone__content-text {
		padding: 10px;
	}
}

.editor-featured-image__current-image {
	position: relative;
	display: inline-block;
	vertical-align: top;
	max-width: 100%;

	&.button.is-borderless {
		padding: 0;
		border-radius: 0;
	}

	&.button.is-borderless .editor-featured-image__edit-icon {
		position: absolute;
			top: auto;
			bottom: 8px;
			right: 8px;
		padding: 0;
		color: var( --color-text-inverted );
		opacity: 0.9;
	}

	&.button.is-borderless:hover .editor-featured-image__edit-icon {
		opacity: 1;
	}
}

.editor-featured-image__inner-content {
	position: relative;
	display: inline-block;
}

.editor-featured-image__preview.is-transient::after {
	content: '';
	position: absolute;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
	background-color: rgba( var( --color-surface-rgb ), 0.75 );
	z-index: z-index( 'root', '.editor-featured-image__preview.is-transient::after' );
}

.editor-featured-image__preview .spinner {
	display: none;
}

.editor-featured-image__preview.is-transient .spinner {
	display: block;
}

.editor-featured-image__preview .spinner {
	z-index: z-index( 'root', '.editor-featured-image .editor-drawer-well__remove' );
}

.editor-featured-image__preview .spinner {
	position: absolute;
		top: 50%;
		left: 50%;
	transform: translate( -50%, -50% );
}

.editor-featured-image__preview .image-preloader {
	overflow: hidden;
}

.editor-featured-image__preview .spinner-line {
	width: 100vw;
	margin: 0;
}

.editor-featured-image__preview.has-assigned-height ~ .editor-featured-image__edit-icon {
	display: none;
}

.editor-featured-image__preview.has-assigned-height .spinner-line {
	position: absolute;
		top: 50%;
		left: 50%;
	transform: translate( -50%, -50% );
}

.editor-featured-image__preview .spinner__border {
	fill: transparent;
}

.editor-featured-image__preview-image {
	display: block;
}

.editor-featured-image__preview .editor-featured-image__edit-icon {
	position: absolute;
	color: var( --color-text-inverted );
	opacity: 0.9;
	top: auto;
	bottom: 8px;
	right: 8px;
	line-height: 0;
	padding: 4px;
	border: none;
	background: rgba( 0, 0, 0, 0.2 );
	border-radius: 50%;

	&:hover {
		opacity: 1;
	}
}
